package cn.git.controller;

import cn.git.service.CacheService;
import cn.git.vo.BpmnInVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description: 并行规则测试controller
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-11-12
 */
@RestController
@RequestMapping("/bpmn")
public class BpmnController {

    @Autowired
    private CacheService cacheService;

    @GetMapping("/info")
    public void getBpmnInfo(@RequestParam(value = "file") MultipartFile file) {
        cacheService.getBpmnInfoByFile(file);
    }

    @GetMapping("/file")
    public void getBpmnInfoByFileByVO(BpmnInVO bpmnInVO) {
        cacheService.getBpmnInfoByFile(bpmnInVO.getFile());
    }
}
